/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import androidx.core.app.NotificationCompat;
//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class TemplateDescription {
    @NotNull
    private final Action action;
    @NotNull
    private final String image;
    private final boolean status;
    @NotNull
    private final String title;

    public TemplateDescription(@NotNull String title, boolean z, @NotNull String image, @NotNull Action action) {
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(image, "image");
        Intrinsics.checkNotNullParameter(action, "action");
        this.title = title;
        this.status = z;
        this.image = image;
        this.action = action;
    }

    public static /* synthetic */ TemplateDescription copy$default(TemplateDescription templateDescription, String str, boolean z, String str2, Action action, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = templateDescription.title;
        }
        if ((i2 & 2) != 0) {
            z = templateDescription.status;
        }
        if ((i2 & 4) != 0) {
            str2 = templateDescription.image;
        }
        if ((i2 & 8) != 0) {
            action = templateDescription.action;
        }
        return templateDescription.copy(str, z, str2, action);
    }

    @NotNull
    public final String component1() {
        return this.title;
    }

    public final boolean component2() {
        return this.status;
    }

    @NotNull
    public final String component3() {
        return this.image;
    }

    @NotNull
    public final Action component4() {
        return this.action;
    }

    @NotNull
    public final TemplateDescription copy(@NotNull String title, boolean z, @NotNull String image, @NotNull Action action) {
        Intrinsics.checkNotNullParameter(title, "title");
        Intrinsics.checkNotNullParameter(image, "image");
        Intrinsics.checkNotNullParameter(action, "action");
        return new TemplateDescription(title, z, image, action);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof TemplateDescription)) {
            return false;
        }
        TemplateDescription templateDescription = (TemplateDescription) obj;
        return Intrinsics.areEqual(this.title, templateDescription.title) && this.status == templateDescription.status && Intrinsics.areEqual(this.image, templateDescription.image) && Intrinsics.areEqual(this.action, templateDescription.action);
    }

    @NotNull
    public final Action getAction() {
        return this.action;
    }

    @NotNull
    public final String getImage() {
        return this.image;
    }

    public final boolean getStatus() {
        return this.status;
    }

    @NotNull
    public final String getTitle() {
        return this.title;
    }

    public int hashCode() {
        int hashCode = this.title.hashCode() * 31;
        boolean z = this.status;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        return ((((hashCode + i2) * 31) + this.image.hashCode()) * 31) + this.action.hashCode();
    }

    @NotNull
    public String toString() {
        return "TemplateDescription(title=" + this.title + ", status=" + this.status + ", image=" + this.image + ", action=" + this.action + ')';
    }
}